surface: Stop setting transient-for for popups
authorMatthias Clasen <mclasen@redhat.com>
Mon, 22 Apr 2019 15:20:47 +0000 (15:20 +0000)
committerMatthias Clasen <mclasen@redhat.com>
Tue, 28 May 2019 20:25:14 +0000 (20:25 +0000)
This was just a hack to reuse the existing
infrastructure. Now that we store parents separately,
stop doing it.

gdk/gdksurface.c

index fd254bfd976f12471a9319e04e025f75f117a184..4a977c25d1f58a9b8ae8bdff7db9594da933ce80 100644 (file)
@@ -817,9 +817,6 @@ gdk_surface_new_popup (GdkDisplay *display,
   surface = gdk_surface_new (display, GDK_SURFACE_POPUP,
                              parent, 0, 0, 100, 100);
 
-  gdk_surface_set_transient_for (surface, parent);
-  gdk_surface_set_type_hint (surface, GDK_SURFACE_TYPE_HINT_MENU);
-
   return surface;
 }